require 'socket'
require 'yaml'

require File.expand_path(File.dirname(__FILE__) + '/name')
require File.expand_path(File.dirname(__FILE__) + '/monkey_patches')

class FinderClient
  def initialize(config_file)
    configuration = YAML.load_file(File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', config_file)))
    @host = configuration['host']
    @port = configuration['port']
    @socket ||= TCPSocket.open @host, @port
  end
  
  def get(str)
    raise "Subclass must implement get"
  end
  
end